﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CampaignVerify.aspx.cs" Inherits="crm_campaign_CampaignVerify" %>

<%@ Register TagPrefix="MembersControl" Namespace="Controls" %>
<%@ Register TagPrefix="PubHead" TagName="header" Src="~/pub/crm/include/header.ascx" %>
<style type="text/css">
    .style1
    {
        width: 373px;
    }
    .style2
    {
        width: 298px;
    }
</style>
<PubHead:header ID="header" runat="server"></PubHead:header>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>编辑活动基本信息</title>
    <script type="text/javascript" src="/pub/crm/js/calendar_en.js"></script>
    <script>
        //        function openWindow(url) {
        //            var win = window.open(url, '', 'width=540,height=270,resizable=0,scrollbars=yes,menubar=no,status=no');
        //        }
        function openWindow(url, width, height) {
            var top = (window.screen.availHeight - 30 - height) / 2; //获得窗口的垂直位置;
            var left = (window.screen.availWidth - 10 - width) / 2; //获得窗口的水平位置;
            var feature = "location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no";
            feature = feature + "top=" + top + ",left=" + left + ",width=" + width + ",height=" + height;
            window.open(url, '', feature);
        }

    </script>
    <script language="JavaScript" type="text/javascript">
        //        function checkNum(hour) {
        //            var re = /^[0-24]\d*$/;
        //            if (!re.test(hour.value)) {
        //                alert("必须为正整数!");
        //                hour.value = "";
        //                hour.focus();
        //                return false;
        //            }
        //        } 
</script><%--<input name="rate" type="TextBox"onkeyup="checkNum(this)" />--%>


</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table class="poptab">
            <tr>
                <td class="title">
                    <div id="title">
                        <strong>市场活动审核</strong>
                    </div>
                   <%-- <div id="Div2">
                        <asp:Label runat="server" ID="label1"><strong></strong></asp:Label>
                    </div>--%>
                </td>
            </tr>
        </table>
    </div>
    <div align="center">
         <table width="90%" border="0"  class="opertab">
                <tr class="title">                   
                        <div align="center">
                           <td bgcolor="#888888">                
                            <font color="#FFFFFF"> <asp:Label runat="server" ID="label1"><strong></strong></asp:Label></font></div> 
                            </td>                                      
                           
                
                </tr>
            </table>
          <br/>

        <table width="90%" border="0">
            <%-- <tr>
                    <td align="right">
                        市场活动名称：
                    </td>
                    <td align="left">
                        <asp:TextBox ID="CAM_NAME" runat="server">
                            
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="cha_name_validator" runat="server" ErrorMessage="市场活动名称必须输入!"
                            ControlToValidate="CAM_NAME" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>--%>
            <tr bgcolor="#EEEEEE">
                <td align="right">
                    活动代码：
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_CODE" runat="server" Enabled="false" Width="319px">
                            
                    </asp:TextBox>
                </td>
                <td align="right">
                    <%--活动显示名称：--%>
                    活动名称：
                </td>
                <td align="left">
                    <asp:TextBox Rows="5" ID="CAM_NAME" runat="server" Width="319px" Enabled="false" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <%--<td align="right">
                        
                        活动名称：
                    
                    <td align="left">
                        <asp:TextBox Rows="5" ID="TextBox1" runat="server" Width="319px"></asp:TextBox>
                    </td>  --%>
            </tr>
            <%--<tr>
                    <td align="right">
                        显示名称描述：
                    </td>
                    <td align="left">
                        <asp:TextBox TextMode="MultiLine" Rows="5" ID="txt_camname_alias" runat="server" Width="536">
                            
                        </asp:TextBox>                      
                    </td>
                </tr>--%>
            <%-- <tr bgcolor="#EEEEEE">
                    <td align="right">
                        活动开始时间：</td>
                    <td align="left">
                        <asp:TextBox ID="TextBox3" runat="server" onfocus="this.blur()" onkeydown="tab()">
                        </asp:TextBox>
                        <img id="Img1" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25"
                            height="21" style="cursor: hand" onclick="setday(this, document.all.CAM_BEGINTIME)" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请选择活动开始时间!"
                            ControlToValidate="CAM_BEGINTIME" Display="Dynamic"></asp:RequiredFieldValidator>
                        &nbsp; &nbsp;&nbsp; 活动结束时间: &nbsp; &nbsp;
                        <asp:TextBox ID="TextBox4" runat="server" onfocus="this.blur()" onkeydown="tab()">
                        </asp:TextBox>
                        <img id="Img4" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.CAM_ENDTIME)" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择活动结束时间!"
                            ControlToValidate="CAM_ENDTIME" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>--%>
            <tr bgcolor="#EEEEEE">
                <td align="right">
                    开始时间：
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_BEGINTIME" runat="server" Enabled="false">
                    </asp:TextBox>
                    <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请选择活动开始时间!"
                            ControlToValidate="CAM_BEGINTIME" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                </td>
                <td align="right">
                    结束时间：
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_ENDTIME" runat="server" Enabled="false">
                    </asp:TextBox>
                    <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择活动结束时间!"
                            ControlToValidate="CAM_BEGINTIME" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <%--<td align="right">
                        活动结束时间：</td>
                    <td align="left">
                        <asp:TextBox ID="CAM_ENDTIME" runat="server" onfocus="this.blur()" onkeydown="tab()">
                        </asp:TextBox>
                        <img id="Img2" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25"
                            height="21" style="cursor: hand" onclick="setday(this, document.all.CAM_ENDTIME)" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请选择活动结束时间!"
                            ControlToValidate="CAM_BEGINTIME" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>--%>
            </tr>
            <%--<tr>
                    <td rowspan="2" align="right">
                        排除的活动：
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddl_camlist" runat="server" AutoPostBack="true" OnSelectedIndexChanged="camlist_OnChange">
                        </asp:DropDownList>
                        
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <asp:ListBox ID="lb_ex_camlist" runat="server" SelectionMode="multiple" Width="320" Rows="15" >
                        
                        </asp:ListBox>
                        <asp:Button ID="btn_del" runat="server" Text="删除活动" OnClick="btndel_Onclick" />
                    </td>
                </tr>--%>
            <tr bgcolor="#EEEEEE">
                <td align="right">
                    目标人群：
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_TARGET_CUSTOMERS" runat="server" TextMode="MultiLine" Rows="3"
                        Columns="50" Enabled="false" Width="319px"></asp:TextBox>
                </td>
                <td align="right">
                    短信内容：
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_SMS_CONTENTS" runat="server" TextMode="MultiLine" Rows="3"
                        Columns="50" Enabled="false" Width="319px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr bgcolor="#EEEEEE">
                <td align="right">
                    活动描述：
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_DESCRIPTION" runat="server" TextMode="MultiLine" Rows="3" Columns="50" Enabled="false" Width="319px"></asp:TextBox>
                </td>
                <td align="right">
                    测试号码：(以;分割)
                </td>
                <td align="left">
                    <asp:TextBox ID="CAM_TEST_CELLPHONES" runat="server" TextMode="MultiLine" Rows="3"
                        Columns="50" Enabled="false" Width="319px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </table>
        <br/>
        <table width="90%" border="0"  style="display:">
            <tr>
                <td class="title">
                    <div id="Div1">
                        <strong>名单列表</strong>
                    </div>
                </td>
                <td class="title" align="right">
                   
                </td>
            </tr>
            <tr>
                <td  style="border-width:thin; max-width:100%" colspan="2">
                    <div align="center" style="width:100%">
                        
                    </div>
                </td>
            </tr>
        </table>
        
        <asp:GridView ID="NAMELIST" CssClass="opertab" runat="server" DataKeyNames="LIS_UID"
            AllowPaging="true" PageSize="50" Width="90%" border="0" CellPadding="3" CellSpacing="1"
            AutoGenerateColumns="false" ShowFooter="false" 
            onrowcommand="NAMELIST_RowCommand" onrowdeleting="NAMELIST_RowDeleting">
            <HeaderStyle CssClass="title" />
            <AlternatingRowStyle CssClass="dg_alternating" />
            <RowStyle CssClass="dg_item" />
            <Columns>
                <asp:TemplateField HeaderText="名单代码">
                    <ItemTemplate>
                        <asp:Label ID="lab_id" runat="server" Text='<%# Eval("LIS_UID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <%-- <asp:BoundField DataField="LIS_UID" 
        HeaderText="名单代码" HeaderStyle-ForeColor="white" />--%>
                <%-- <asp:BoundField DataField="LTT_NAME" HeaderText="名单类别" HeaderStyle-ForeColor="white" />--%>
                <asp:BoundField DataField="LIS_NAME" HeaderText="名称" HeaderStyle-ForeColor="white" />
                <asp:BoundField DataField="LIS_SUMMARY" HeaderText="总人数" HeaderStyle-ForeColor="white" />
                <%-- <asp:BoundField DataField="LIS_CREATE_DATE" HeaderText="创建日期" HeaderStyle-ForeColor="white" />--%>
                                
            </Columns>
        </asp:GridView>
        <table width="90%" border="0">
             <tr  bgcolor="#EEEEEE">
                 <td>&nbsp;</td>
                 <td></td>
             </tr>
         </table>
        <table width="90%" border="0">
            <tr bgcolor="#EEEEEE">
                <td align="center" class="style3">发送时间：</td>
                 <td width="35%" align="left">
                    <asp:TextBox ID="CAM_SEND_TIME" runat="server" Enabled="false"> </asp:TextBox>
                    <asp:TextBox ID="hour" runat="server" MaxLength="2" Width="30" Enabled="false"></asp:TextBox>&nbsp;时&nbsp;
                     <asp:TextBox ID="min" runat="server" MaxLength="2" Width="30" Enabled="false"></asp:TextBox>&nbsp;分&nbsp;
                    <asp:TextBox ID="second" runat="server" MaxLength="2" Width="30" Enabled="false"></asp:TextBox>&nbsp;秒
                 </td>
                 <td align="left" width="25%"></td>
                 <td width="25%"></td>
            </tr>
             <%--<tr bgcolor="#EEEEEE">
                <td align="center" class="style3">活动状态：</td>
                <td align="left">
                      <asp:DropDownList runat="server" ID="LIS_STATUS" >
                        <asp:ListItem Text="新建" Value="0"  />
                        <asp:ListItem Text="报批" Value="1" />
                    </asp:DropDownList>
                 </td>
                 <td >  </td>
                 <td >
                    
                </td>
                
            </tr>--%>
            <tr bgcolor="#EEEEEE">
                <td align="center" class="style3">名单总人数：</td>
                <td align="left">
                    <asp:TextBox ID="LIS_SUMMARY" runat="server" Enabled="False"> </asp:TextBox>
                 </td>
                 <td >  </td>
                 <td >
                   
                </td>    
            </tr>
            <tr bgcolor="#EEEEEE">
                <td align="center" class="style3">备注：</td>
                <td align="left" colspan="3">
                       <asp:TextBox ID="txtBeizhu" runat="server" Width="500" Height="100" TextMode="MultiLine" Rows="3"
                        Columns="50"  > </asp:TextBox>
                        <asp:HiddenField ID="hiduser1" runat="server" Value="0" />
                    <asp:HiddenField ID="hiduser2" runat="server" Value="0" />
                </td>
            </tr>
             <tr bgcolor="#EEEEEE">
                
                 <td align="center" colspan="4">
                     <asp:Button ID="tongguo" runat="server" CssClass="btn"  style="width:100px" Text="通过" onclick="tongguo_Click" OnClientClick="return confirm('您确定要通过本活动吗？')" />
                  <%--<asp:Button ID="save" runat="server" Text="审核" OnClick="save_Click" style="width:100px"></asp:Button>--%>&nbsp;&nbsp;
                     <asp:Button ID="nottongguo" runat="server" Text="未通过" style="width:100px" CssClass="btn"  
                         onclick="nottongguo_Click" OnClientClick="return confirm('您确定不通过本活动吗？')" />&nbsp;&nbsp;
                 <input type="button" onclick="window.location.href='CampaignVerifyList.aspx'" Class="btn"  style="width:100px" value="返回" />
                 </td>
                
                 
             </tr>
             <tr>
                 <td></td>
                 <td></td>
                 <td></td>
                 <td></td>
                 <td></td>
             </tr>

        </table>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>

        
    </div>
    </form>
</body>
</html>
